#  定义在控制台中打印二维列表的函数
# [
# [1,2,3,44],
# [4,5,5,5,65,6,87]
# ]
# 1 2 3 44
# 4 5 5 5 65 6 87
# (扩展)方阵转置.
# def print_tow_wei_list(target_list):
#     for i in target_list:
#         for j in i:
#             print(j, end=" ")
#         print()
#
#
# print_tow_wei_list([
#     [1, 2, 3, 44],
#     [4, 5, 5, 5, 65, 6, 87]
# ])
# print()


list01 = [
    [1, 2, 3, 4],
    [5, 6, 7, 8],
    [9, 10, 11, 12],
    [13, 14, 15, 16],
]

# list01[1][0]--->list01[0][1]
# list01[2][0]--->list01[0][2]
# list01[3][0]--->list01[0][3]
for c in range(1, len(list01)):
    for i in range(c, len(list01)):
        list01[i][c-1], list01[c-1][i] = list01[c-1][i], list01[i][c-1]

print(list01)
